package com.galeno.day04;

import com.galeno.FlinkUtils;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows;

/**
 * @author galeno
 * @Title:
 * @Description:
 * @date 2021/10/2011:27
 */
public class GundongWindows {
    public static void main(String[] args) {
        Configuration configuration = new Configuration();
        configuration.setInteger("rest.port",8081);
        StreamExecutionEnvironment locEnvWebUI = FlinkUtils.getLocEnvWebUI(configuration);
        DataStreamSource<String> lines = locEnvWebUI.socketTextStream("192.168.77.101", 8888);
        SingleOutputStreamOperator<Object> map = lines.map(Integer::parseInt);



    }
}
